IApi.ReadOutputBit method

Reads a bit from an output of a real or simulated I/O module.

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
KsReturn<bool> ReadOutputBit(
       int Index,
       int BitOffset
)
Function ReadOutputBit(
       Index As Integer,
       BitOffset As Integer
) As KsReturn(Of Boolean)

Parameters

Index

Type: int

The index of an I/O module. Indexes are zero based. Aliases affect this parameter.

 

BitOffset

Type: int

Specifies a bit offset to the location to read a bit value. The max offset is determined by OutputLength in the SlaveStatus class.

Return value

Type: KsReturn<bool>

Returns a KsError code and a bool value.

Remarks

ReadOutputBit can only be called once a link is established and started.

Usable EtherCAT states

ecatOP

Examples

C#
N/A

See also

IApi Interface

IntervalZero.KINGSTAR.Base.Api Namespace